<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let p = new Promise((res, rej) => {
        setTimeout(() => {
          res('66');
        }, 1000);
      });
      let p2 = Promise.resolve('Success');
      let p3 = Promise.resolve('yyy');
      let p4 = Promise.reject('666');
      const res = Promise.race([p, p2, p3, p4]);
      console.log(res);
    </script>
  </body>
</html>
